package com.pucheng.bracelet.data.bean

import me.hgj.jetpackmvvm.network.BaseResponse

data class ApiResponse<T>(val code: Int, val message: String, val data: T) : BaseResponse<T>() {

    // 错误码为 20000 代表请求成功
    override fun isSucces() = code == 20000

    override fun getResponseCode() = code

    override fun getResponseData() = data

    override fun getResponseMsg() = message

}